home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Freeware / CharMap / Sources / cmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  1.5 KB  |  52 lines

  1. /******************************************************************
  2. ** cmap.h : Datatypes and constants used by the programme        **
  3. **                                                               **
  4. ** Special Requirements: WorkBench 2.0, version 36 or above      **
  5. ******************************************************************/
  6.  
  7. #ifndef    CMAP_H
  8. #define    CMAP_H
  9.  
  10. /* Some constant definitions */
  11. #define    MIN_VERSION            36L
  12. #define    CHARMAP_VERSION    "1.6"
  13. #define    CHARMAP_DATE        "11.5.2001"
  14.  
  15. /* To init the charset, depending how many chars are defined in a font: */
  16. #define    Init_charset(textfont)        CharsetNum=(textfont->tf_LoChar>=32?2:1);
  17.  
  18. /* To get access easily to StringInfo struct: */
  19. #define    sti(gad)                            ((struct StringInfo *)gad->SpecialInfo)
  20.  
  21. /* If you get bored with long expressions... */
  22. #define    MENUITEM(M,I,S)                (SHIFTMENU(M)+SHIFTITEM(I)+SHIFTSUB(S))
  23.  
  24. /* To access error mesages table: */
  25. extern  UBYTE *Errors[];
  26. #define ErrMsg(num)        Errors[ num-MSG_BADOS ]
  27.  
  28. /* Different values, to handle the recessed box while pressing lmb: */
  29. #define    KEYB_CONTROL        -1
  30. #define    NOT_PRESSED             0
  31. #define    PRESSED                 1
  32. #define    OUTSIDE_AREA         2
  33. #define    EVT_HOTKEY             1L
  34.  
  35. /* Possible types of interface layout: */
  36. #define    SMALL_LAYOUT         1
  37. #define    MIDDLE_LAYOUT         2
  38. #define    LARGE_LAYOUT         3
  39.  
  40. /* NewMenu entries for Charset and Font type: */
  41. #define    NM_FONTTYPE             2
  42. #define    NM_CHARSET             6
  43. #define    GT                        (7+NUM_CHARSET)
  44.  
  45. /* Charset type: */
  46. #define    ASCII_8BITS             0
  47. #define    ISO_LATIN             1
  48. #define    STD_AMIGA             2
  49. #define    NUM_CHARSET             3
  50.  
  51. #endif
  52.